import request from '@/utils/request'

export function getList() {
  return request({
    url: '/seat/list',
    method: 'post',
  })
}

export function add(data) {
  return request({
    url: '/seat',
    method: 'post',
    data
  })
}

export function findById(id) {
  return request({
    url: `/seat/${id}`,
    method: 'get'
  })
}

export function update(id,data) {
  return request({
    url: `/seat/${id}`,
    method: 'put',
    data
  })
}

export function deleteById(id) {
  return request({
    url: `/seat/${id}`,
    method: 'delete'
  })
}

